package com.example.demo1.entity.base.paper;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 试题
 * 
 */
@lombok.Data
@TableName("base_paper_item")
public class Item{

	public static final String ID = "id";

	/** 试卷id */
	public static final String PAPER_ID = "paper_id";

	/** 题目序号 */
	public static final String SORT_NUM = "sort_num";

	/** 题目类型[选择题，填空题，阅读题] */
	public static final String TYPE = "type";

	/** 题目内容 */
	public static final String CONTENT = "content";

	/** 题目附图 */
	public static final String CONTENT_IMG = "content_img";

	/** 答案 */
	public static final String ANSWER = "answer";

	/** 答案解释 */
	public static final String EXPLANATION = "explanation";

	/** 分数 */
	public static final String SCORE = "score";

	/** 选择题选项 */
	public static final String CONTENT_DETAIL = "content_detail";

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/** 试卷id */
	@TableField(PAPER_ID)
	private Integer paperId;
	
	/** 题目序号 */
	@TableField(SORT_NUM)
	private Integer sortNum;
	
	/** 题目类型[选择题，填空题，阅读题] */
	@TableField(TYPE)
	private String type;
	
	/** 题目内容 */
	@TableField(CONTENT)
	private String content;
	
	/** 题目附图 */
	@TableField(CONTENT_IMG)
	private String contentImg;
	
	/** 答案 */
	@TableField(ANSWER)
	private String answer;
	
	/** 答案解释 */
	@TableField(EXPLANATION)
	private String explanation;
	
	/** 分数 */
	@TableField(SCORE)
	private Integer score;
	
	/** 选择题选项 */
	@TableField(CONTENT_DETAIL)
	private String contentDetail;
	
}